﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class scorescreen : Form
    {
        public int skor, enb;

        public scorescreen()
        {
            InitializeComponent();
        }
        public Form backForm { get; set; }

        private void Form3_Load(object sender, EventArgs e)
        {
            FormBorderStyle = FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;
            int width = this.Width;
            int height = this.Height;
            score.Location = new Point(Convert.ToInt32(width * 0.2), Convert.ToInt32(height * 0.45));
            score1.Location = new Point(Convert.ToInt32(width * 0.1), Convert.ToInt32(height * 0.45));
            enbcombo.Location = new Point(Convert.ToInt32(width * 0.29), Convert.ToInt32(height * 0.49));
            maxcombo.Location = new Point(Convert.ToInt32(width * 0.1), Convert.ToInt32(height * 0.49));
            label1.Location = new Point(Convert.ToInt32(width * 0.6),Convert.ToInt32(height * 0.4));
            label2.Location = new Point(Convert.ToInt32(width * 0.6), Convert.ToInt32(height * 0.54));
            ranking.Location = new Point(Convert.ToInt32(width * 0.59), Convert.ToInt32(height * 0.39));
            score.Text = skor.ToString();
            enbcombo.Text = enb.ToString();
            if (skor <= 200000)
            {
                label1.Visible = true;
                label1.ForeColor = Color.Red;
                label1.Text = "D";
            }

            else if (skor <= 400000)
            {
                label1.Visible = true;
                label1.ForeColor = Color.Pink;
                label1.Text = "C";
            }

            else if (skor <= 600000)
            {
                label1.Visible = true;
                label1.ForeColor = Color.Blue;
                label1.Text = "B";
            }

            else if (skor <= 800000)
            {
                label1.Visible = true;
                label1.ForeColor = Color.Green;
                label1.Text = "A";
            }

            else
            {
                label1.Visible = true;
                label1.ForeColor = Color.Gold;
                label1.Text = "S";
                label2.Visible = true;
            }
                
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}
